package mywebapps.security.jsf;

import java.util.List;

import javax.annotation.PostConstruct;

import mywebapps.security.dao.UserDao;
import mywebapps.security.model.User;

public class ManageUsersAction
{
    private UserDao userDao;
    private List<User> users;
    
    @PostConstruct
    public void init()
    {
        users = userDao.getAllUsers();
    }

    public void setUserDao(UserDao userDao)
    {
        this.userDao = userDao;
    }

    public List<User> getUsers()
    {
        return users;
    }
}
